Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spablob/bsc-deployment #300

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

spablob/bsc-deployment #300

wants to merge 23 commits into from

Conversation

Spablob
Copy link
Contributor

@Spablob Spablob commented Jan 24, 2023

Steps made before the PR below:

  1. Deploy Opyn contracts on BSC Mainnet | Branch - 1b3c62d030d8fa0f711b4ff2009498e9d8cb4503 on https://github.com/opynfinance/GammaProtocol/tree/1b3c62d030d8fa0f711b4ff2009498e9d8cb4503

  2. Post-deployment Opyn-related manual interactions

    • Oracle contract
      • call setAssetPricer with:
        • ChainlinkPricer address (0xb6e1047b8C2b5218972eB018049c7ecc69791edA)
        • asset address WBNB (0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c)
      • call setStablePrice with:
        • USDC address (0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d)
        • uint: 100000000
    • Whitelist contract
      • call whitelistCollateral with:
        • asset address WBNB (0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c)
      • call whitelistProduct with:
        • underlying - asset address WBNB (0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c)
        • strike - USDC address (0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d)
        • collateral - asset address WBNB (0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c)
        • isPut - false

https://bscscan.com/address/0xf8368119bb1073cf01b841848725d81b542a4c19

AddressBook: 0x9DB2496f58d3777FcD95955b73B39525E400E8fB
OtokenFactory: 0x944740e4432e48429520cED81a750d9CA666F8eF
Otoken: 0x3929b62e1846B60B1AFB44729BED2f89C62f6966
Whitelist: 0xe4F23fa9067068063a5190fdc41e47AaA4ab6A5E
Oracle: 0x107412A5fa2DFd630ca8b5546F5649e7363f40Cd
MarginPool: 0x3Be589d20881315AF1a1dA02F432d5214B763d6f
MarginCalculator: 0xE551c62Ef87e8c1b3066Ce81261B811843104827
MarginVault: 0x410e1eB837a6fa04B2C484FE902b34F4cFb94170
Controller: 0xE2a65c4CCD295524080ea9fd2F00Aed038c55e8F

@Spablob Spablob changed the title spablob/bsc-deployment spablob/bsc-deployment (wip) Jan 24, 2023
@Spablob Spablob closed this Jan 27, 2023
@Spablob Spablob reopened this Jan 27, 2023
@Spablob Spablob changed the title spablob/bsc-deployment (wip) spablob/bsc-deployment Jan 27, 2023
@Spablob Spablob marked this pull request as ready for review January 30, 2023 17:51
// Can't verify pricer because it's compiled with 0.7.3

const strikeSelection = await deploy("StrikeSelectionBNBWithSwap", {
contract: "DeltaStrikeSelection",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets use manual strike selection like we do in wbtc with swap deployment script

Copy link
Contributor Author

@Spablob Spablob Feb 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in e2ac4dd

default: 0,
1: "0x77DA011d5314D80BE59e939c2f7EC2F702E1DCC4",
42: "0x92Dd37fbc36cB7260F0d2BD09F9672525a028fB8",
56: "0xF8368119Bb1073Cf01B841848725d81b542A4c19",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change this to 0x77?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in e11a3cd

default: 0,
1: "0x691c87dc570563D1D0AD7Fd0bb099ED367858863",
42: "0x691c87dc570563D1D0AD7Fd0bb099ED367858863",
56: "0xF8368119Bb1073Cf01B841848725d81b542A4c19",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change this to 0x69?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in e11a3cd

default: 0,
1: "0x43a43D3404eaC5fA1ec4F4BB0879495D500e390b",
42: "0x422f7Bb366608723c8fe61Ac6D923023dCCBC3d7",
56: "0xF8368119Bb1073Cf01B841848725d81b542A4c19",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change this to 0x43?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in e11a3cd

default: 0,
1: "0xDAEada3d210D2f45874724BeEa03C7d4BBD41674", // Ribbon DAO
42: "0x92Dd37fbc36cB7260F0d2BD09F9672525a028fB8",
56: "0xF8368119Bb1073Cf01B841848725d81b542A4c19",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change this to 0xDAE?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in e11a3cd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants